package com.du.domain;

import javax.persistence.*;
import java.io.Serializable;
import lombok.*;
import javax.persistence.Id;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

/**
 * @author  DT
 * @date 2022-04-07 
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table (name ="student")
public class Student  implements Serializable {

	private static final long serialVersionUID =  5909364048713222353L;

   	@Column(name = "number" )
	private String number;

   	@Column(name = "NAME" )
	private String name;

   	@Column(name = "birthday" )
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date birthday;

   	@Column(name = "address" )
	private String address;

}
